import turtle
from turtle import *
# color('red', 'yellow')
# speed(0)
# begin_fill()
# while True:
#     forward(200)
#     left(170)
#     if abs(pos()) < 1:
#         break
# end_fill()
# hideturtle()
# done()

size = 500
turtle.color('red', 'yellow')
turtle.speed(0)
turtle.pu()
turtle.setpos(-size/2,0)
turtle.pd()
turtle.begin_fill()
for i in range(36):
    turtle.forward(size)
    turtle.left(170)
turtle.end_fill()
turtle.hideturtle()
turtle.done()


# import turtle

# def paint(times,at):
#     angle=180-90/times
#     turtle.pu()
#     turtle.setpos(at)
#     turtle.pd()
#     turtle.begin_fill()
#     for i in range(times*4):
#         turtle.forward(100)
#         turtle.left(angle)
#     turtle.end_fill()

# turtle.color('red', 'yellow')
# turtle.speed(0)
# paint(1,(-50,100))
# paint(2,(50,100))
# paint(3,(150,100))
# paint(4,(250,100))
# paint(5,(-50,0))
# paint(100,(150,0))
# turtle.hideturtle()
# turtle.done()
